<player-edit>

  • module
bitballs/components/player/edit

{Module}

 

Provides an interface for editing the values of a Player model.

<player-edit {is-admin} />

Creates a form with inputs for each property in a Player model.

Parameters

  1. is-admin {Boolean}

    Configures whether or not admin specific features are enabled.

To create a <player-edit> element pass a boolean like bitballs/app.prototype.isAdmin:

<player-edit
    {is-admin}="app.isAdmin" />

Example